using System;
using UnityEngine;

namespace GameCore
{
    public abstract class GridItem : Item
    {
        public Shape shape;
        public bool placed;
        public Inventory parentInventory;
        public Vector2Int gridPos;

        public bool debug;
        public GizmosDebug.DrawShapeSettings drawShapeSettings;

        public void OnDrawGizmosSelected()
        {
            if (!debug) return;
            GizmosDebug.DrawShape(shape, transform.position, drawShapeSettings);
        }
    }
}